package com.geek.netty.filter;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;

/**
 * @program geek
 * @description: filter
 * @author: chanzhugang
 * @create: 2021/04/04 12:12
 */
public class HeaderHttpRequestFilter implements HttpRequestFilter {

    @Override
    public void filter(FullHttpRequest fullHttpRequest, ChannelHandlerContext ctx) {

        fullHttpRequest.headers().set("nettyHeader", "hello-netty");
    }
}